
package edu.tongji.jiaowu.service.impl;
 
import java.util.List;
import com.tongji.quickCRUDQ.service.impl.BaseManagerImpl;
import edu.tongji.jiaowu.dao.CodeDao;
import edu.tongji.jiaowu.service.CodeManager;
import com.tongji.quickCRUDQ.model.CommonBean;

public class CodeManagerImpl extends BaseManagerImpl implements CodeManager {
        private CodeDao codeDao;

	
	public CommonBean createCode(){
                return codeDao.createCode();		
	}
	
/*
	public CommonBean findCodes(String refid) {
                return codeDao.findCodes(refid);
       }
*/
	public CommonBean findCodeById(String id){
                return codeDao.findCodeById(id);
       }	
	public CommonBean findAllCodes() {
                return codeDao.findAllCodes();
       }
	public void insertCode(CommonBean codeBean){
               codeDao.insertCode(codeBean);
	}
	
	public CodeDao getCodeDao(){
		return codeDao;
        }	
        
        public void setCodeDao(CodeDao codeDao){
                this.codeDao=codeDao;	
        }        		
}

